4D Chart v13

Using the 4D Chart Default Area

Home

 
4D Chart v13
Using the 4D Chart Default Area

Using the 4D Chart Default Area  


 

 

The default area is a template in memory that can be used to set the default attributes of all new 4D Chart areas and plug-in windows. Any command that can be executed on a 4D Chart area can be executed on the default area by setting the area parameter to -1. You can use methods to perform operations on the default area as you would with any other area.

Using the default area, you can eliminate the unnecessary execution of code for 4D Chart areas. For example, if you want all new 4D Chart areas and plug-in windows to appear without scroll bars, you don’t have to turn the scroll bars off for each area and plug-in window individually.

You can set the attributes of both 4D Chart areas and plug-in windows. The default area is used automatically as a template whenever a new 4D Chart area on a form or new plug-in window is opened. Since no code has to be executed, the default area provides a quick way to customize the chart area.

If you do not want the default area to apply to every new 4D Chart area, you can override it by creating a template on disk for the 4D Chart area or by executing appropriate code when the On Load event occurs. A template on disk or code that runs when the On Load event occurs takes precedence over the default area. For more information about form events, please refer to the description of the Form event in the 4D Language Reference manual.

 
PROPERTIES 

Product: 4D Chart
Theme: Introduction to the language

 
SEE ALSO 

Referring to 4D Chart Documents